how to find length of overlap